package com.unusap.remote.unutrip.dto;

import com.unusap.remote.core.register.dto.RegisterRequest;
import com.unusap.remote.core.dto.ValueEntry;
import com.unusap.remote.unutrip.namespace.UnutripNameSpace;

/**
 * Created by IntelliJ IDEA.
 * User: danson
 * Date: 2009-8-21
 * Time: 11:53:33
 * To change this template use File | Settings | File Templates.
 */
public class UnutripRegisterRequest extends RegisterRequest {

    /**
	 * 
	 */
	private static final long serialVersionUID = -1279724862578346869L;

	public UnutripRegisterRequest setUserName(String userName) {
        addRegisterEntry(new ValueEntry(UnutripNameSpace.Register.USER_NAME, userName));
        return this;
    }

    public String getUserName() {
        return getRegisterEntry(UnutripNameSpace.Register.USER_NAME).getValue();
    }

    public UnutripRegisterRequest setUserPassword(String password) {
        addRegisterEntry(new ValueEntry(UnutripNameSpace.Register.USER_PASSWORD, password));
        return this;
    }

    /**
     * 经过ws通信密码加密过的用户密码
     * @return
     */
    public String getUserPassword() {
        return getRegisterEntry(UnutripNameSpace.Register.USER_PASSWORD).getValue();
    }

    public UnutripRegisterRequest setUserCardNo(String cardNo) {
        addRegisterEntry(new ValueEntry(UnutripNameSpace.Register.USER_CARD_NO, cardNo));
        return this;
    }

    public String getUserCardNo() {
        return getRegisterEntry(UnutripNameSpace.Register.USER_CARD_NO).getValue();
    }

}
